﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using A2DFramework.OSGI;
using LoggingModule.PublicInterfaces;
using A2DFramework.OSGI.BundleContexts;

namespace LoggingModule
{
    class Activator : A2DFramework.OSGI.BundleActivator
    {
        public override void Startup(BundleContext bc)
        {
            Console.WriteLine("LoggingModule Startup");

            BundleContext.Current.RegisterProvidedService<ILog, LogImpl>();
        }

        public override void Stop(BundleContext bc)
        {
            Console.WriteLine("LoggingModule Stop");

            BundleContext.Current.UnRegisterProvidedService<ILog, LogImpl>();
        }
    }
}
